﻿@{
    ViewBag.Title = "BD Quote - Products";
}

<h2>Products</h2>
<div id="box-search">
    <table cellpadding="2">
        <tr>
            <td>
                Keyword:
            </td>
            <td>
                <input id="txtKeyword" type="text" style=" width:190px;"/>
            </td>
            <td style="width:100px;">Manufacturer:</td>
            <td>
                <select id="ddlManufactures" style=" width:200px;" name="ddlManufactures">
                    <option value="0">-----All Manufacturers-----</option>
                    @foreach (BDGetQuote.Web.Models.Manufacturer item in ViewBag.Manufacturers)
                    {
                        if ((int)ViewBag.ManufacturerId == item.ManufacturerId)
                        {
                            <option value="@item.ManufacturerId" selected="selected">@item.Name</option>
                        }
                        else
                        {
                            <option value="@item.ManufacturerId">@item.Name</option>
                        }
                    }
                </select>
            </td>
            <td style="width:80px;">Category:</td>
            <td>
                <select id="ddlCategories" name="ddlCategories">
                    <option value="0">-----All Categories-----</option>
                    @foreach (BDGetQuote.Web.Models.Category item in ViewBag.Categories)
                    {
                        if ((int)ViewBag.CategoryId == item.CategoryId)
                        {
                            <option value="@item.CategoryId" selected="selected">@item.Name</option>
                        }
                        else
                        {
                            <option value="@item.CategoryId">@item.Name</option>
                        }
                    }
                </select>
            </td>
            <td>
                <button type="button" class="btn">Search</button>
            </td>
            <td>
                <a href="#" class="btn btn-primary">Add Products</a>
            </td>
        </tr>
    </table>
</div>
